<table>
	<tr>
		<td>
			<a class="button" href="<?php echo $this->baseUrl() ?>/cpshipping/pack">
				<div style="background:url(<?php echo $this->baseUrl() ?>/public/images/left_16.png);" class="inb">Wróć do listy</div>
			</a>
		</td>
		<td>
			<a class="button" href="javascript:void(null)" onclick="$('#formitem').submit()">
				<div style="background:url(<?php echo $this->baseUrl() ?>/public/images/save_16.png);" class="inb">Zapisz</div>
			</a>
		</td>
	</tr>
</table>

<form id="formitem" action="<?php echo $this->baseUrl() ?>/cpshipping/itempack<?php echo isSet( $this->p_id ) ? '/id/' . $this->p_id : '' ?>" method="post">
<table cellspacing="0" cellpadding="6" class="tform">
	<tr>
		<td class="lb">Nazwa:</td>
		<td class="inpy">
			<?php if( isSet( $this->err_name ) ) { ?>
				<input style="border:1px solid red;" type="text" name="name" value="" />
				<div class="formerror"><?php echo $this->err_name ?></div>
			<?php } else { ?>
				<input type="text" name="name" value="<?php echo $this->name ?>" />
			<?php } ?>
		</td>
		
	</tr>
	<tr>
			<td class="lb">Powierzchnia:</td>
			<td class="inpy">
				<input type="text" name="area" value="<?php echo $this->area ?>" />
			</td>
	</tr>
	<?php for($i=0;$i < 10;$i++){?>
	<tr>
			<td class="lb">Waga <?php echo $i+1; ?>:</td>
			
			<td class="inpy2">
			od:
			
				<input type="text" name="weightod<?php echo $i; ?>" value="<?php echo $this->{'weightod'.$i}; ?>" />
			do:
			
				<input type="text" name="weightdo<?php echo $i; ?>" value="<?php echo $this->{'weightdo'.$i}; ?>" />
			Cena <?php echo $i+1; ?>:
				<input type="text" name="price<?php echo $i; ?>" value="<?php echo $this->{'price'.$i}; ?>" />
			</td>
			
			
	</tr>
	<?php }?>
	
</table>
</form>

<table>
	<tr>
		<td>
			<a class="button" href="<?php echo $this->baseUrl() ?>/cpshipping/pack">
				<div style="background:url(<?php echo $this->baseUrl() ?>/public/images/left_16.png);" class="inb">Wróć do listy</div>
			</a>
		</td>
		<td>
			<a class="button" href="javascript:void(null)" onclick="$('#formitem').submit()">
				<div style="background:url(<?php echo $this->baseUrl() ?>/public/images/save_16.png);" class="inb">Zapisz</div>
			</a>
		</td>
	</tr>
</table>